/**
 * 
 */
package co.fitstart.admin.entity.security;

import co.fitstart.entity.principal.PrincipalType;

/**
 * 
 * @author Downpour
 */
public class Role {

    private String name;
    
    private String alias;
    
    private String description;
    
    /** 员工类型 */
    private PrincipalType type;
    
    private boolean display;
    
    /**
     * The default constructor
     */
    public Role() {
        
    }
    
    /**
     * 
     * @param name
     * @param alias
     * @param description
     * @param type
     * @param display
     */
    public Role(String name, String alias, String description, String type, boolean display) {
        this.name = name;
        this.alias = alias;
        this.description = description;
        this.type = PrincipalType.aliasOf(type);
        this.display = display;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	 * @return the type
	 */
	public PrincipalType getType() {
        return type;
    }
	
	/**
	 * @param type
	 */
	public void setType(PrincipalType type) {
        this.type = type;
    }

	public boolean isDisplay() {
		return display;
	}

	public void setDisplay(boolean display) {
		this.display = display;
	}
}
